package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"

	"fyne.io/fyne/v2/theme"

	"gitee.com/hanholy1210/fyne_holy/container"
	"gitee.com/hanholy1210/fyne_holy/widget"
)

// BluetoothDevice represents a discovered Bluetooth device
type BluetoothDevice struct {
	MACAddress     string
	Name           string
	SignalStrength string
}

func main() {
	// Create a Fyne application
	myApp := app.New()
	myWindow := myApp.NewWindow("fyne_holy")
	myWindow.Resize(fyne.NewSize(800, 600))
	myWindow.CenterOnScreen()

	content := container.NewVBox(
		widget.NewLabelWithTitle("标题", "内容").
			SetSize(50, 50).
			SetTitleStyle(fyne.TextStyle{Bold: true}),
		widget.NewLabelWithTitle("标题", "内容").
			SetSize(30, 30).
			SetTitleStyle(fyne.TextStyle{Bold: true}),
		widget.NewButtonWithIcon("按钮", theme.Icon(theme.IconNameMailSend), func(b *widget.Button) {
		}).SetSize(100, 50).SetTextSize(30).SetIconSize(60),
		widget.NewEntryWithTitle("用户名：").SetWidth(100, 200),
		widget.NewEntryWithTitle("密码：").SetWidth(100, 200),
	)

	// Set the content of the window
	myWindow.SetContent(content)

	// Show and run the application
	myWindow.ShowAndRun()
}
